<?php /* Smarty version 2.6.20, created on 2009-03-30 19:31:51
         compiled from admin/edit_disciplina.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'load_module', 'admin/edit_disciplina.html', 1, false),)), $this); ?>
<?php echo smarty_function_load_module(array('name' => 'Find','url' => ($this->_tpl_vars['site']->relroot_path)."admin/find.php",'assign' => 'mod_find'), $this);?>

<form name="cad_admin" method="post" action="?action=cadastrar">
<center>
<table width="383" border="0" align="center" cellpadding="3">
	<tr>
		<td colspan="2" align="center" valign="top"><span class="style1"><strong>Editar Disciplina</strong></span></td>
	</tr>
	<tr><td colspan="2" align="left">&nbsp;</td></tr>
    <tr>
		<td width="152" align="left">Nome:</td>
		<td width="207" align="left"><input name="nome" type="text" id="nome" size="32" maxlength="80" value="<?php echo $this->_tpl_vars['teste']; ?>
"/></td>
	</tr>
	<tr>
		<td align="left">Codigo:</td>
		<td align="left"><input name="codigo" type="text" id="codigo" size="32" maxlength="14" value="<?php echo $this->_tpl_vars['mydisciplina']->get('disciplina','codigo'); ?>
" /></td>
	</tr>


  	<tr>
		<td align="left">Departamento</td>
        <td colspan="3" align="left"><select name="departamento" >
             <option> Selecione o Departamento </option>
        
        <?php $_from = $this->_tpl_vars['mod_find']->find_alldepartments(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['dep_loop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['dep_loop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['dep_loop']['iteration']++;
?>
            <option value="<?php echo $this->_tpl_vars['item']['id']; ?>
"><?php echo $this->_tpl_vars['item']['nome']; ?>
</option>
        <?php endforeach; endif; unset($_from); ?>
        </select></td>
	</tr>

    <tr>
		<td align="left">Tipo Disciplina</td>
        <td colspan="3" align="left"><select name="tipo" >
             <option> Selecione o Tipo de Disciplina </option>
        <?php $_from = $this->_tpl_vars['mod_find']->find_alltipodiscipline(); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['dep_loop'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['dep_loop']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['item']):
        $this->_foreach['dep_loop']['iteration']++;
?>
            <option value="<?php echo $this->_tpl_vars['item']['id']; ?>
"><?php echo $this->_tpl_vars['item']['descricao']; ?>
</option>
        <?php endforeach; endif; unset($_from); ?>
        </select></td>
	</tr>


	<tr>
		<td align="left">Carga Horária: </td>
		<td align="left"><input name="cargahoraria" type="text" id="cargahoraria" size="32" maxlength="14" value="<?php echo $this->_tpl_vars['mydisciplina']->get('Disciplina','cargahoraria'); ?>
" /></td>
	</tr>
	
	<tr>
		<td align="left">Semestre:</td>
		<td align="left"><input name="semestre" type="text" id="semestre" size="32" maxlength="40" value="<?php echo $this->_tpl_vars['mydisciplina']->get('Disciplina','semestre'); ?>
" /></td>
	</tr>
	
	<tr>
		<td colspan="2" align="left">&nbsp;</td>
	</tr>
	<tr>
		<td colspan="2" align="right"><input name="Reset" type="reset" id="Reset" value="Limpar" />
		<input name="Submit" type="submit" id="Submit" value="Avan&ccedil;ar" /></td>
	</tr>
</table>
</center>
</form>